<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class SegmentSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = \Carbon\Carbon::now();
        DB::table('segment')->insert(
            [
                [
                    'name' => '第一号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '第二号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '第三号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '第四号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],     [
                    'name' => '第五号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],     [
                    'name' => '第六号段',
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
            ]
        );
    }
}
